package com.pair.micro.fee.modules.charge.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.vo.TransPojo;
import com.pair.micro.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(description = "小区管理")
public class GardenVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Integer id;
    @Schema(description = "园区名称", required = true)
    @NotBlank(message = "园区名称不能为空")
    private String name;

    @Schema(description = "所在市id", required = true)
    private Integer cityId;

    @Schema(description = "所在市名称", required = true)
    @NotBlank(message = "所在市名称不能为空")
    private String cityName;

    @Schema(description = "园区编码")
    private String gardenCode;

    @Schema(description = "是否仅有开门权限 1：正常 2：仅有开门权限")
    private Integer onlyOpenDoor;

    @Schema(description = "小区LOGO")
    private String gardenLogo;

    @Schema(description = "是否有一键乘梯 1：有 0：无")
    private Integer isLiftControl;

    @Schema(description = "园区经度")
    private String longitude;

    @Schema(description = "园区纬度")
    private String latitude;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

}
